package com.zh.test.Thread;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class HandlerSelf2 {

    @Value("${test.test.name:初始值}")
    private String name ;
    //@PostConstruct
    public void test (){
        System.out.println("自执行设置全局唯一参数:" + name);
    }

    public void setName(String name){
        this.name = name;
    }
}
